package br.com.sgs.facade;

import br.com.sgs.persist.Epi;
import br.com.sgs.persist.Suprimento;



/**
 * @author UpTech
 */
public class FacadeEpi {

    private Epi epi;

    public FacadeEpi() {
        epi = new Epi();
        epi.setSuprimento(new Suprimento());
    }



    public Epi getEpi() {
        return epi;
    }

    public void setEpi(Epi epi) {
        this.epi = epi;
    }

    
    public String cadastrarEpi() {
        String status = new Epi().cadastrarEpi(epi);
        this.epi = new Epi();
        return status;
    }

    public String alterarEpi() {

        String status = new Epi().alterarEpi(epi);
        this.epi = new Epi();
        return status;
    }

    public String excluirEpi() {

        String status = new Epi().excluirObra(epi);
        this.epi = new Epi();
        return status;
    }

    public String cancelaObra() {

        String status = new Epi().cancelarEpi();
        this.epi = new Epi();
        return status;
    }
    public String voltarObra() {

        String status = new Epi().voltarEpi();
        this.epi = new Epi();
        return status;
    }
 }
